<?php

if (($_POST['newmdp'] == $_POST ['confmdp'])){
 session_start();
include ('./changempd.php');
   $email = $_SESSION['login'];

   $oldmdp = md5($_POST['oldmdp']);
   $newmdp = md5($_POST['newmdp']);
   $Ch = new Changemdp ($email,$oldmdp,$newmdp);
	$Ch->change();
	}
else {
echo 'Mot de passe non correspondant !';
	
	}
?>

